package com.coldwindblows.blog.service;

import java.util.List;

import com.coldwindblows.blog.pojo.RelationshipDo;

/**
 * Created by ColdWindBlows on 2018/07/01
 * @author Administrator
 *
 */
public interface IRelationshipService {
	/**
	 * 根据主键删除
	 * @param cid
	 * @param mid
	 * @return
	 */
	boolean deleteById(Integer cid, Integer mid);
	/**
	 * 根据主键统计条数
	 * @param cid
	 * @param mid
	 * @return
	 */
	Long countById(Integer cid, Integer mid);
	/**
	 * 保存对象
	 * @return
	 */
	boolean insert(RelationshipDo relationshipKey);
	/**
	 * 根据id搜索
	 * @param cid
	 * @param mid
	 * @return
	 */
	List<RelationshipDo> getRelationshipById(Integer cid, Integer mid);
}
